package dao;

import java.util.List;

import vo.Opinion;
import vo.Sentence;

public interface OpinionDAO extends GenericDao<Opinion, Long> {

	public List<Opinion> findAll();

	public List<Opinion> findAll(int start, int pageSize);

	public long findTotalCount();
	
	public List<Opinion> findByPaperId(int start, int pageSize,long paperId);

	public long findTotalCountByPaperId(long paperId);
	
	//类型分页
	public List<Opinion> findByType(int start, int pageSize,long typeId);

	public long findTotalCountByType(long typeId);

	//关键字分页
	public List<Opinion> findByKeyword(int start, int pageSize,String keyword);

	public long findTotalCountByKeyword(String keyword);


	//type,关键字分页
	public List<Opinion> findByTypeKeyword(int start, int pageSize,long type,String keyword);

	public long findTotalCountByTypeKeyword(long type,String keyword);


}
